package iosr11.gcontacts;

import java.net.URL;

import com.google.gdata.client.contacts.ContactsService;
import com.google.gdata.data.contacts.ContactEntry;
import com.google.gdata.data.contacts.ContactGroupEntry;

public interface Contacts {
	public ContactsService getService();
	public void setService(ContactsService service, String username);
	public boolean autenticate(String username, String password);
	public boolean addNewUser(ContactEntry user);
	public boolean addNewUser(String realUserName, String email);
	public String addNewUserReturnId(String realUserName, String email);
	public String addNewUserReturnId(ContactEntry user);
	public boolean addUserGroup(ContactEntry contact, ContactGroupEntry group);
	public boolean addUserGroup(ContactEntry contact, String groupName);
	public ContactEntry getUser(URL url);
	public ContactEntry getUser(String name);
	//public boolean userExist(String username);
}
